var db = require("./db")
var mongoose = require("mongoose")
var ObjectId = mongoose.Schema.Types.ObjectId;

var ShopAddrSchema = new mongoose.Schema({
    user:{type:ObjectId,ref:'User'},
    addr:String,
    detail:String,
    phone:Number,
    isDefalt:{type:Boolean,default:false}
})


module.exports = db.model('ShopAddr',ShopAddrSchema)